$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .section1 {
    margin: 11vw 6vw 3vw 6vw;
    display: flex;
    align-items: center;

    .dot {
      display: flex;
      align-items: center;
      margin: 0 7vw;

      span {
        width: 6/$f+vw;
        height: 6/$f+vw;
        border-radius: 50%;
        background-color: #000;
      }

      p {
        color: #000;
        font-size: $fontSize_16;
        margin-left: .6vw;
      }
    }

    .types {
      display: flex;

      a {
        display: flex;
        align-items: flex-end;
        color: #999A9A;
        font-size: $fontSize_48;
        font-family: 'SourceHanSansCN-Medium';
        margin-right: 3vw;
        transition: all 600ms;

        span {
          font-size: $fontSize_16;
          font-family: 'SourceHanSansCN-Normal';
          margin-left: 0.5vw;
        }

        &:hover {
          color: #1B2170;
        }
      }

      .active {
        color: #1B2170;
      }
    }
  }

  .section2 {
    display: flex;
    justify-content: space-between;

    .l {
      width: 34%;
      background: #F3F3F3;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 8%;

      .t {
        color: #020626;
        font-size: $fontSize_48;
        font-family: 'SourceHanSansCN-Medium';
        margin-bottom: 3vw;
      }

      .des {
        margin-bottom: 1.5vw;

        .p1 {
          color: #1B2170;
          font-size: $fontSize_28;
          font-family: 'SourceHanSansCN-Medium';
        }

        .p2 {
          color: #333;
          font-size: $fontSize_16;
          margin-top: 0.5vw;
        }
      }

    }

    .r {
      width: 50%;
      overflow: hidden;

      img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: all 600ms;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
      }
    }
  }

  .section3 {
    background: linear-gradient(169deg, #1B2170 17.72%, #02072B 59.23%);
    padding: 6vw 8vw 10vw 8vw;

    .d1 {
      position: relative;

      .p1 {
        color: #FFF;
        font-size: $fontSize_48;
        font-weight: 700;
      }

      .des {
        color: #FFF;
        font-size: $fontSize_16;
        margin-top: 1vw;
      }

      .circle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: flex-end;

        svg {
          display: block;
        }

        svg:last-child {
          margin-left: 0.3vw;
        }
      }
    }

    .d2 {
      display: flex;
      flex-wrap: wrap;
      width: 103.6%;
      margin-top: 2vw;
      margin-left: -1.8%;

      .item {
        border-radius: 8px 27/$f+vw 8px 8px;
        border: 1px solid #1B2170;
        background: #FFF;
        box-shadow: 0px 4px 20px 0px rgba(27, 33, 112, 0.12);
        padding: 1.5vw;
        width: calc(22.5% - 3vw);
        margin-left: 1.8%;
        margin-top: 1.5vw;

        .st {
          display: flex;
          align-items: center;
          justify-content: space-between;

          .num {
            color: #2C368D;
            font-size: $fontSize_18;
            font-family: 'SourceHanSansCN-Medium';
          }

          .icon {
            img {
              width: 24/$f+vw;
              display: block;
            }
          }
        }

        .tag {
          color: #000;
          font-size: $fontSize_16;
          font-weight: 300;
          margin-top: 1vw;
        }
      }
    }
  }

  .section4 {
    padding: 6vw 8vw 0 8vw;
    position: relative;

    &::after {
      content: '';
      display: block;
      background-color: #FAFBFF;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 40%;
      z-index: -1;
    }

    .t {
      color: #000;
      font-size: $fontSize_36;
      font-family: 'SourceHanSansCN-Medium';
    }

    a {
      display: block;
      width: fit-content;
      padding: 0.5vw 2vw;
      background-color: #000;
      color: white;
      font-size: $fontSize_16;
      margin: 2vw 0 5vw 0;
    }

    .pic {
      img {
        width: 100%;
        display: block;
      }
    }
  }

  .section5 {
    margin: 6vw 10vw;

    .t {
      text-align: center;
      color: #000;
      font-size: $fontSize_48;
      font-weight: 700;
    }

    .allItems {
      .item {
        border-radius: 6px;
        background: #FFF;
        box-shadow: 0px 4px 20px 0px rgba(12, 16, 68, 0.10);
        cursor: pointer;
        margin-top: 2vw;
        .d1{
          padding: 1.5vw 2.5vw;
          display: flex;
          align-items: center;
          justify-content: space-between;
          p{
            color: #000;
            font-size: $fontSize_22;
            font-family: 'SourceHanSansCN-Medium';
          }
          .add{
            width: 25px;
            height: 25px;
            position: relative;
            span{
              position: absolute;
              background-color: #1B2170;
              display: block;
              border-radius: 5px;
              left: 50%;
              top:0;
              width: 3px;
              height: 100%;
              transform: translateX(-50%);
              transition: all 600ms;
            }
            span:nth-child(2){
              transform: translateX(-50%) rotate(90deg);
            }
          }
        }
        .d2{
          margin: 0 2.5vw;
          background: rgba(27, 33, 112, 0.03);
          padding: 1.5vw;
          color: #666;
          font-size: $fontSize_16;
          line-height: 1.6;
          display: none;
        }
      }
      .active{
        padding-bottom: 2vw;
        .d1{
          .add{
            span:nth-child(1){
              transform: translateX(-50%) rotate(90deg);
            }
          }
        }
      }
    }

    .pic {
      margin: 4vw 0;

      img {
        width: 100%;
        display: block;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 40px 5% 30px 5%;
      flex-direction: column;
      align-items: flex-start;
      .dot{
        margin: 0;
        span{
          width: 6px;
          height: 6px;
        }
        p{
          font-size: 18px;
          margin-left: 5px;
        }
      }
      .types{
        flex-wrap: wrap;
        a{
          font-size: 26px;
          width: 50%;
          margin: 10px 0 0 0;
        }
      }
    }
    .section2{
      flex-direction: column;
      .l{
        width: 90%;
        padding: 30px 5%;
        .t{
          font-size: 20px;
        }
        .des{
          margin-bottom: 15px;
          .p1{
            font-size: 18px;
          }
          .p2{
            font-size: 16px;
          }
        }
      }
      .r{
        width: 100%;
      }
    }
    .section3{
      padding: 30px 5%;
      .d1{
        .p1{
          font-size: 20px;
        }
        .des{
          font-size: 16px;
          margin-top: 10px;
        }
        .circle{
          top:10%;
          svg:last-child{
            width: 40px;
          }
        }
      }
      .d2{
        width: 100%;
        margin-left: 0;
        .item{
          width: 90%;
          padding: 15px 5%;
          margin-left: 0;
          margin-top: 15px;
          .st{
            .num{
              font-size: 18px;
            }
            .icon{
              img{
                width: 20px;
              }
            }
          }
          .tag{
            font-size: 14px;
            margin-top: 15px;
          }
        }
      }
    }
    .section4{
      padding: 30px 5%;
      .t{
        font-size:18px;
      }
      a{
        margin: 20px 0 40px 0;
        font-size: 14px;
        padding: 5px 25px;
      }
    }
    .section5{
      margin: 30px 5%;
      .t{
        font-size: 24px;
      }
      .allItems{
        .item{
          margin-top: 20px;
          .d1{
            padding: 15px ;
            p{
              font-size: 16px;
              width: 80%;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
            }
            .add{
              width: 20px;
              height: 20px;
            }
          }
          .d2{
            padding: 15px;
            font-size: 14px;
            margin:  0 15px;
          }
        }
        .active{
          padding-bottom: 20px;
        }
      }
      .pic{
        margin: 30px 0;
      }
    }
  }
}